/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

var Footer = function() {
    return {
        init: function() {
            Footer.pin();
            Footer.toolsTip();
            Footer.tab();

        },
        toolsTip: function() {
            $('#name').popover({
                placement: 'top',
                trigger: 'focus',
                content: '用户名至少2位'
            });
            $('#password').popover({
                placement: 'top',
                trigger: 'focus',
                content: '密码长度为6位'
            });
            $('#repassword').popover({
                placement: 'top',
                trigger: 'focus',
                content: '请再次输入您的密码'
            });

            $('#tell').popover({
                placement: 'top',
                trigger: 'focus',
                content: '输入11位手机号'
            });
        },
        tab: function() {
            //<!--tabs切换-->
            $('#myTab1 a').click(function(e) {
                e.preventDefault()
                $(this).tab('show')
            })
            //    $('#myTab a[href="#two"]').tab('show') // Select tab by name
            $('#myTab1 a:first').tab('show') // Select first tab
            $('#myTab1 a:second').tab('show') // Select second tab
            $('#myTab1 a:third').tab('show') // Select third tab
            $('#myTab1 a:last').tab('show') // Select last tab
            $('#myTab1 li:eq(4) a').tab('show') // Select third tab (0-indexed)

//<!--end tabs切换-->
        },
        pin: function() {
            $(".pinned").pin();
            $(".pinned").pin({
                minWidth: 940
            });
        },
    };
}();

